<template>
    <div>
        <div class="nav-bar">
        <div class="icon" @click="onClickLeft"><van-icon name="arrow-left" /></div>
        </div>
        <van-nav-bar :title="text" />
       
    </div>
</template>
<script lang='ts' setup>
const onClickLeft = () => {
    history.back();
};
const text=JSON.parse(sessionStorage.getItem('text') as any);
console.log(text,121212121)
</script>
<style scoped lang="scss">
.nav-bar{
    .icon{
        position: absolute;
        margin-top: 15px;
        z-index: 999;
    }
}
</style>